{extend name='layout/layoutname'/}
{block name='head'}
	<title>首页-蚁巢众筹</title>
	<link rel="stylesheet" href="/static/css/home_page.css" />

{/block}

{block name='body'}
	<div class="scroll">
		<div class="scroll_picture">
			{if condition="$user"}
			<div class="sign_out sign">
				<p>账户信息</p>
				<p>
					<span>账户名:</span>
					<span>{$user['username'] ? $user['username'] : $user['mobile']}</span>
					<a href="javascript:;" onclick="history.go(0)">刷新</a>
				</p>
				<p>
					<span>总资金:</span>
					<span>{$user['total_funds']}</span>
				</p>
				<p>
					<span>可用资金:</span>
					<span>{$user['available_funds']}</span>
				</p>
				<p>
					<span>佣金:</span>
					<span>{$user['commission']}</span>
				</p>
				<button onclick='signout(this,"{:url('signout')}")'>安全退出</button>
			</div>
			{else/}
			<div class="sign_in sign">
				<input type="text" name="mobile" class="phone_num input" style="background-color: white;" placeholder="请输入手机号码"/>
				<input type="password" name="password" class="password input" style="background-color: white;" placeholder="请输入密码"/>
				<div class="link">
					<a href="javascript:viod(0);" class="register">立即注册</a>
				    <a href="#" class="forget_pass">忘记密码?</a>
				</div>
				<input type="button" onclick='signin(this,"{:url('login')}")' value="登录" class="sign_in_block"/>
			</div>
			{/if}
		</div>
		<div class="notice">
			<div class="official_notice">官网公告</div>
			<span class="notice_title">{$gnotice[0]['n_title']}</span>
		</div>
	</div>
	<div class="business">
		<ul class="business_type center">
			<li><img src="/static/img/icon-1.png" alt="" /><p>投资理财</p><p>即刻开启财富之旅</p></li>
			<li><img src="/static/img/icon-2.png" alt="" /><p>好友互转</p><p>及时到账无间隔</p></li>
			<li><img src="/static/img/icon-3.png" alt="" /><p>开发新用户</p><p>团队使你的财富增值</p></li>
			<li><img src="/static/img/icon-4.png" alt="" /><p>提现</p><p>闪电到账 及时响应</p></li>
		</ul>
		<div class="chart">
			<div></div>
		</div>
		<ul class="consultion_type center">
			<li>
				<p>官方公告</p>
				<p>官方公告</p>
				<p class="news_homePage">
					{foreach $gnotice as $v}
					<span>{$v['n_title']}</span><br />
					{/foreach}
					<a href="/index/Personal/index?list=1"><img src="/static/img/more.png" alt="" /></a>
				</p>
			</li>
			<li>
				<p>行业动态</p>
				<p>行业动态</p>
				<p class="news_homePage">
					{foreach $dnotice as $v}
					<span>{$v['n_title']}</span><br />
					{/foreach}
					<a href="/index/Personal/index?list=1"><img src="/static/img/more.png" alt="" /></a>
				</p>
			</li>
			<li>
				<p>新闻咨询</p>
				<p>新闻咨询</p>
				<p class="news_homePage">
					{foreach $nnotice as $v}
					<span>{$v['n_title']}</span><br />
					{/foreach}
					<a href="/index/Personal/index?list=1"><img src="/static/img/more.png" alt="" /></a>
				</p>
			</li>
		</ul>
		<ul class="click">
			<li class="btn_service"><img src="/static/img/service.png" alt="客服" /><br />客服</li>
			<li class="app_red_letter_btn"><img src="/static/img/new_hand.png" alt="新手" /><br />新手</li>
			<li class="app_red_letter_btn"><img src="/static/img/letter、.png" alt="信" /><br />信</li>
		</ul>
	</div>
{/block}

{block name='box'}
	<div class="big">
		<div class="rgerster">
			<h3>注册新用户</h3>
			<div class="gb">
				<img src="/static/img/cancel.png"/>
			</div>
			<div>
				<p><span>*</span>手机号</p>
				<input type="text" name="mobile" placeholder="请输入您的手机号"/>	
			</div>
			<div>
				<div onclick="verifyimg('{:captcha_src()}')"><img src="{:captcha_src()}" class="verifyimg" alt="captcha" style="display: inline-block;float: right;" /></div>
				<input type="text" name="verify" style="width: 30%;margin: 0 0 0 -20px" placeholder="请输入验证码"/>		
			</div>
			<div>
				<span style="color: red;">*</span>
				<input type="text" style="width: 49%;" name = "code" placeholder="请输入短信" />
				<input type="button" value="发送验证码" style="width: 30%;margin: 10px 0 0 5% 
					background: #FFFFFF;text-indent:5px;" onclick='code(this,"{:url('code')}","{:captcha_src()}")' />				
			</div>
			<div>
				<p><span>*</span>登录密码</p>
				<input type="password" name="password" placeholder="首字母为大写的8-18位字符" />	
			</div>
			<div>
				<p><span>*</span>重复密码</p>
				<input type="password" name="rpwd" placeholder="请再次输入密码"/>
			</div>
			<div>
				<p><span>*</span>推荐人</p>
				<input type="text" name = 'pmobile' placeholder="推荐人手机号"/>	
			</div>
			<div >
				<p>微信/QQ</p>
				<input type="text" name="QQaccount"  placeholder="请输入您的微信号或QQ号"/>				
			</div>
			<div class="dxk" style="margin: -20px 0 0 0;">
				<input type="checkbox" name="read" value="Y" style="width: 12px;"  style="display: inline-block;margin:  0 0 0 20px;"/>
				<p class="wf">我已阅读并同意（服务协议）</p>
			</div>
			<div>
				<button onclick='signup(this,"{:url('signup')}")'>确认</button>				
			</div>
		</div>
	</div>
{/block}

{block name='script'}
	<script src="/static/js/home_page.js"></script>
{/block}
